package com.wq.common.base;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author wqc
 * @version 1.0
 * @description: Rest API 响应数据的格式, Controller层，对外
 * @date 2021-9-30 11:44
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ApiResponse<T> {

    private int code = 200;
    private String message = "success";
    private T data;
}
